<? $cnt = count($specialHotels); ?>

<div class="clearfix fixbx">
    <ul class="specialOffersList clearfix bxslider">

        <? for ($i = 0; $i < $cnt; $i++):

        $obj_name = URLify::filter($specialHotels[$i]->object_name);
        $href = lang_url('accommodation/' . $obj_name . '-' . $specialHotels[$i]->object_ID . '?preview=1&room_id=' . $specialHotels[$i]->lowest_price_room_id."&currency=".currency_sign());
        $thumbnail = HOST_URL_HOTELS . 'gallery/' . $specialHotels[$i]->photo_path . '/thumb_160x78/' . $specialHotels[$i]->photo_name;

        $stars = (int) $specialHotels[$i]->object_number_of_stars;
        ?>

        <li>
            <div class="soImageHolder"> <img src="<?= $thumbnail ?>" alt="<?= $specialHotels[$i]->object_name ?>"/> </div>
            <div class="soContent clearfix">
                <h3 class="ellipsis"><?= ucfirst(lang('type.hotel')); ?> <span><?= $specialHotels[$i]->object_name ?></span></h3>
                <h4 class="ellipsis"><?= $specialHotels[$i]->destination_name ?>, <?= lang('montenegro'); ?></h4>
                <div class="soPriceHolder clearfix">
                    <div class="triangle priceShadow"></div>
                    <div class="soPrice"><span class="italicText"><?= lang('from'); ?></span> <span class="boldPrice"><?= lang(currency_sign()) ?> <?= round($specialHotels[$i]->lowest_price) ?></span> /<?= strtolower(lang('day')); ?></div>
                    <div class="triangle"></div>
                </div>
                <div class="soBookHolder clearfix">
                    <div class="triangle triangleArrow"></div>
                    <div class="soBook"><a class="buttonLink" href="<?= $href ?>"><?= lang('res.book_now'); ?></a></div>
                    <div class="triangle"></div>
                </div>
            </div>
        </li>

        <? endfor; ?>

    </ul>
</div>